<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bluetooth LE Mesh Library: Mesh Light LC Server</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bluetooth LE Mesh Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__wiced__bt__mesh__model__light__lc__server.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Mesh Light LC Server<div class="ingroups"><a class="el" href="group__wiced__bt__mesh.html">LE Mesh</a> &raquo; <a class="el" href="group__wiced__bt__mesh__models.html">Mesh Models Library API</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>The AIROC Mesh Light LC Server module provides a way for an application to implement a Light Control Server device which can be a client to a Sensor Server model and controls the Light Lightness Actual state via defined state bindings. </p>
<p>To include the Mesh Models support for the LC Server module the application shall contain the <a class="el" href="group__wiced__bt__mesh__models.html#ga5fa6789c93b62195dfb8da4fad55d02e">WICED_BT_MESH_MODEL_LIGHT_LC_SERVER</a></p>
<p>TBD </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaf857fcb55bb6493c1520ff9d7416928a"><td class="memItemLeft" align="right" valign="top">typedef void()&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gaf857fcb55bb6493c1520ff9d7416928a">wiced_bt_mesh_light_lc_server_callback_t</a>(uint8_t element_idx, uint16_t event, void *p_data)</td></tr>
<tr class="memdesc:gaf857fcb55bb6493c1520ff9d7416928a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light Control Setup Server callback is called by the Mesh Models library on receiving a message from the peer Application or higher level model should be able process messages for the Light LC Setup server model as well as bound models including generic Light Lightness, Power On/Off, Generic Level and Generic On/Off.  <a href="#gaf857fcb55bb6493c1520ff9d7416928a">More...</a><br /></td></tr>
<tr class="separator:gaf857fcb55bb6493c1520ff9d7416928a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gae96df3aa549096d5dc38493783f1b7fc"><td class="memItemLeft" align="right" valign="top">wiced_bool_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gae96df3aa549096d5dc38493783f1b7fc">wiced_bt_mesh_model_light_lc_server_message_handler</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, uint8_t *p_data, uint16_t data_len)</td></tr>
<tr class="memdesc:gae96df3aa549096d5dc38493783f1b7fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Server Message Handler.  <a href="#gae96df3aa549096d5dc38493783f1b7fc">More...</a><br /></td></tr>
<tr class="separator:gae96df3aa549096d5dc38493783f1b7fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab17ba324d6882bb65068b3ffa05e4ace"><td class="memItemLeft" align="right" valign="top">wiced_bool_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gab17ba324d6882bb65068b3ffa05e4ace">wiced_bt_mesh_model_light_lc_setup_server_message_handler</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, uint8_t *p_data, uint16_t data_len)</td></tr>
<tr class="memdesc:gab17ba324d6882bb65068b3ffa05e4ace"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Setup Server Message Handler.  <a href="#gab17ba324d6882bb65068b3ffa05e4ace">More...</a><br /></td></tr>
<tr class="separator:gab17ba324d6882bb65068b3ffa05e4ace"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0ecb1a55277a6bba951042bbcfb86411"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#ga0ecb1a55277a6bba951042bbcfb86411">wiced_bt_mesh_model_light_lc_server_send_status</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, <a class="el" href="structwiced__bt__mesh__light__lightness__status__data__t.html">wiced_bt_mesh_light_lightness_status_data_t</a> *p_data)</td></tr>
<tr class="memdesc:ga0ecb1a55277a6bba951042bbcfb86411"><td class="mdescLeft">&#160;</td><td class="mdescRight">An application or a a parent model can call this function to send Light Lightness Status message to the Client.  <a href="#ga0ecb1a55277a6bba951042bbcfb86411">More...</a><br /></td></tr>
<tr class="separator:ga0ecb1a55277a6bba951042bbcfb86411"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac160a32da93a99adee53b89bbdb0047f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gac160a32da93a99adee53b89bbdb0047f">wiced_bt_mesh_model_light_lc_mode_changed</a> (uint8_t element_idx, <a class="el" href="structwiced__bt__mesh__light__lc__mode__set__data__t.html">wiced_bt_mesh_light_lc_mode_set_data_t</a> *p_status)</td></tr>
<tr class="memdesc:gac160a32da93a99adee53b89bbdb0047f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Server Mode Changed.  <a href="#gac160a32da93a99adee53b89bbdb0047f">More...</a><br /></td></tr>
<tr class="separator:gac160a32da93a99adee53b89bbdb0047f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga185c05b8ed0345dfe829ec8862fb7ced"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#ga185c05b8ed0345dfe829ec8862fb7ced">wiced_bt_mesh_model_light_lc_occupancy_mode_changed</a> (uint8_t element_idx, <a class="el" href="structwiced__bt__mesh__light__lc__occupancy__mode__set__data__t.html">wiced_bt_mesh_light_lc_occupancy_mode_set_data_t</a> *p_status)</td></tr>
<tr class="memdesc:ga185c05b8ed0345dfe829ec8862fb7ced"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Server Occupancy Mode Changed.  <a href="#ga185c05b8ed0345dfe829ec8862fb7ced">More...</a><br /></td></tr>
<tr class="separator:ga185c05b8ed0345dfe829ec8862fb7ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8c14c7073bfa507d604fe3b97ec530e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gac8c14c7073bfa507d604fe3b97ec530e">wiced_bt_mesh_model_light_lc_occupancy_detected</a> (uint8_t element_idx)</td></tr>
<tr class="memdesc:gac8c14c7073bfa507d604fe3b97ec530e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Server Occupancy Detected.  <a href="#gac8c14c7073bfa507d604fe3b97ec530e">More...</a><br /></td></tr>
<tr class="separator:gac8c14c7073bfa507d604fe3b97ec530e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf16079160105348390e16e691fbdd021"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gaf16079160105348390e16e691fbdd021">wiced_bt_mesh_model_light_lc_onoff_changed</a> (uint8_t element_idx, <a class="el" href="structwiced__bt__mesh__onoff__set__data__t.html">wiced_bt_mesh_onoff_set_data_t</a> *p_status)</td></tr>
<tr class="memdesc:gaf16079160105348390e16e691fbdd021"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Server OnOff Changed.  <a href="#gaf16079160105348390e16e691fbdd021">More...</a><br /></td></tr>
<tr class="separator:gaf16079160105348390e16e691fbdd021"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacd115a125b843a2cc22ee3f003568349"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gacd115a125b843a2cc22ee3f003568349">wiced_bt_mesh_model_light_lc_property_changed</a> (uint8_t element_idx)</td></tr>
<tr class="memdesc:gacd115a125b843a2cc22ee3f003568349"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Property Changed.  <a href="#gacd115a125b843a2cc22ee3f003568349">More...</a><br /></td></tr>
<tr class="separator:gacd115a125b843a2cc22ee3f003568349"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga77530a80ee364b3719464b764a2ec5a6"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#ga77530a80ee364b3719464b764a2ec5a6">wiced_bt_mesh_model_light_lc_server_scene_store_handler</a> (uint8_t element_idx, uint8_t *p_buffer, uint16_t buffer_len)</td></tr>
<tr class="memdesc:ga77530a80ee364b3719464b764a2ec5a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Server Scene Store Handler.  <a href="#ga77530a80ee364b3719464b764a2ec5a6">More...</a><br /></td></tr>
<tr class="separator:ga77530a80ee364b3719464b764a2ec5a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabba87e7cad75e2485cd6d0854f89e28e"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gabba87e7cad75e2485cd6d0854f89e28e">wiced_bt_mesh_model_light_lc_server_scene_recall_handler</a> (uint8_t element_idx, uint8_t *p_buffer, uint16_t buffer_len, uint32_t transition_time, uint32_t delay)</td></tr>
<tr class="memdesc:gabba87e7cad75e2485cd6d0854f89e28e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Server Scene Store Handler.  <a href="#gabba87e7cad75e2485cd6d0854f89e28e">More...</a><br /></td></tr>
<tr class="separator:gabba87e7cad75e2485cd6d0854f89e28e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9fce8802d823d39f1e21e7df007702f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#ga9fce8802d823d39f1e21e7df007702f8">wiced_bt_mesh_model_light_lc_server_init</a> (uint8_t element_idx, <a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gaf857fcb55bb6493c1520ff9d7416928a">wiced_bt_mesh_light_lc_server_callback_t</a> *p_callback, wiced_bool_t is_provisioned)</td></tr>
<tr class="memdesc:ga9fce8802d823d39f1e21e7df007702f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Light LC Setup Server Module initialization.  <a href="#ga9fce8802d823d39f1e21e7df007702f8">More...</a><br /></td></tr>
<tr class="separator:ga9fce8802d823d39f1e21e7df007702f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="gaf857fcb55bb6493c1520ff9d7416928a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf857fcb55bb6493c1520ff9d7416928a">&#9670;&nbsp;</a></span>wiced_bt_mesh_light_lc_server_callback_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void() wiced_bt_mesh_light_lc_server_callback_t(uint8_t element_idx, uint16_t event, void *p_data)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light Control Setup Server callback is called by the Mesh Models library on receiving a message from the peer Application or higher level model should be able process messages for the Light LC Setup server model as well as bound models including generic Light Lightness, Power On/Off, Generic Level and Generic On/Off. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>The event that the application should process (see <a class="el" href="wiced__bt__mesh__models_8h.html#LIGHT_LIGHTNESS_EVENT">LIGHT_LIGHTNESS_EVENT</a> Light Lightness Events, <a class="el" href="wiced__bt__mesh__models_8h.html#ONOFF_EVENT">On/Off Events, @ref LEVEL_EVENT </a>Level Events") </td></tr>
    <tr><td class="paramname">p_event</td><td>information about the message received. The same pointer should be used in the reply if required. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data structure specific to the event</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gae96df3aa549096d5dc38493783f1b7fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae96df3aa549096d5dc38493783f1b7fc">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_server_message_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_bool_t wiced_bt_mesh_model_light_lc_server_message_handler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Server Message Handler. </p>
<p>The Mesh Core library calls this function for each message received. The function returns WICED_TRUE if the message is destined for this specific model and successfully processed, and returns WICED_FALSE otherwise.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with information about received message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data portion of the message </td></tr>
    <tr><td class="paramname">data_len</td><td>Length of the data in the message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_TRUE if the message is for this company ID/Model/Element Index combination, WICED_FALSE otherwise. </dd></dl>

</div>
</div>
<a id="gab17ba324d6882bb65068b3ffa05e4ace"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab17ba324d6882bb65068b3ffa05e4ace">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_setup_server_message_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_bool_t wiced_bt_mesh_model_light_lc_setup_server_message_handler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Setup Server Message Handler. </p>
<p>The Mesh Core library calls this function for each message received. The function returns WICED_TRUE if the message is destined for this specific model and successfully processed, and returns WICED_FALSE otherwise.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with information about received message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data portion of the message </td></tr>
    <tr><td class="paramname">data_len</td><td>Length of the data in the message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_TRUE if the message is for this company ID/Model/Element Index combination, WICED_FALSE otherwise. </dd></dl>

</div>
</div>
<a id="ga0ecb1a55277a6bba951042bbcfb86411"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0ecb1a55277a6bba951042bbcfb86411">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_server_send_status()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_light_lc_server_send_status </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__light__lightness__status__data__t.html">wiced_bt_mesh_light_lightness_status_data_t</a> *&#160;</td>
          <td class="paramname"><em>p_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>An application or a a parent model can call this function to send Light Lightness Status message to the Client. </p>
<p>The mesh event should contain information if this is a reply or an unsolicited message.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the status data</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="gac160a32da93a99adee53b89bbdb0047f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac160a32da93a99adee53b89bbdb0047f">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_mode_changed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_light_lc_mode_changed </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__light__lc__mode__set__data__t.html">wiced_bt_mesh_light_lc_mode_set_data_t</a> *&#160;</td>
          <td class="paramname"><em>p_status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Server Mode Changed. </p>
<p>Application should call this function when LC Mode is changed locally</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element index where the LC Model is located </td></tr>
    <tr><td class="paramname">p_status</td><td>Pointer to the structure with the new mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a id="ga185c05b8ed0345dfe829ec8862fb7ced"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga185c05b8ed0345dfe829ec8862fb7ced">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_occupancy_mode_changed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_light_lc_occupancy_mode_changed </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__light__lc__occupancy__mode__set__data__t.html">wiced_bt_mesh_light_lc_occupancy_mode_set_data_t</a> *&#160;</td>
          <td class="paramname"><em>p_status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Server Occupancy Mode Changed. </p>
<p>Application should call this function when LC Occupancy Mode is changed locally</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element index where the LC Model is located </td></tr>
    <tr><td class="paramname">p_status</td><td>Pointer to the structure with the new mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a id="gac8c14c7073bfa507d604fe3b97ec530e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac8c14c7073bfa507d604fe3b97ec530e">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_occupancy_detected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_light_lc_occupancy_detected </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Server Occupancy Detected. </p>
<p>Application should call this function when LC Occupancy is detected locally</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element index where the LC Model is located</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a id="gaf16079160105348390e16e691fbdd021"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf16079160105348390e16e691fbdd021">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_onoff_changed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_light_lc_onoff_changed </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__onoff__set__data__t.html">wiced_bt_mesh_onoff_set_data_t</a> *&#160;</td>
          <td class="paramname"><em>p_status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Server OnOff Changed. </p>
<p>Application should call this function when LC Light OnOff is changed locally</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element index where the LC Model is located </td></tr>
    <tr><td class="paramname">p_status</td><td>Pointer to the structure with the new Light OnOff State</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a id="gacd115a125b843a2cc22ee3f003568349"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacd115a125b843a2cc22ee3f003568349">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_property_changed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_light_lc_property_changed </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Property Changed. </p>
<p>Application should call this function when an LC LC property is changed locally</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element index where the LC Model is located</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a id="ga77530a80ee364b3719464b764a2ec5a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga77530a80ee364b3719464b764a2ec5a6">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_server_scene_store_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t wiced_bt_mesh_model_light_lc_server_scene_store_handler </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>buffer_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Server Scene Store Handler. </p>
<p>The mesh Scene Server calls this function so that the module can store required data for the scene.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element index for which scene information is being stored </td></tr>
    <tr><td class="paramname">p_buffer</td><td>Pointer to a buffer where data should be stored </td></tr>
    <tr><td class="paramname">buf_size</td><td>Maximum amount of data a model can store</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Number of bytes the model wrote into the provided buffer </dd></dl>

</div>
</div>
<a id="gabba87e7cad75e2485cd6d0854f89e28e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabba87e7cad75e2485cd6d0854f89e28e">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_server_scene_recall_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t wiced_bt_mesh_model_light_lc_server_scene_recall_handler </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>buffer_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>transition_time</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>delay</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Server Scene Store Handler. </p>
<p>When Scene Server receives Scene Recall message it calls this function with data previously stored in the NVRAM.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element index for which scene information is being recalled </td></tr>
    <tr><td class="paramname">p_buffer</td><td>Pointer to a buffer where model's data is located </td></tr>
    <tr><td class="paramname">buf_size</td><td>Maximum amount of data a model can get from the buffer </td></tr>
    <tr><td class="paramname">transition_time</td><td>Specified time in milliseconds to transition to the target state </td></tr>
    <tr><td class="paramname">delay</td><td>Specifies time in milliseconds before starting to transition to the target state</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Number of bytes the model read from the provided buffer </dd></dl>

</div>
</div>
<a id="ga9fce8802d823d39f1e21e7df007702f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9fce8802d823d39f1e21e7df007702f8">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_light_lc_server_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_light_lc_server_init </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__wiced__bt__mesh__model__light__lc__server.html#gaf857fcb55bb6493c1520ff9d7416928a">wiced_bt_mesh_light_lc_server_callback_t</a> *&#160;</td>
          <td class="paramname"><em>p_callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wiced_bool_t&#160;</td>
          <td class="paramname"><em>is_provisioned</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Light LC Setup Server Module initialization. </p>
<p>A Mesh application which contains Light LC Setup Server (for example a dimmable bulb) should call this function for each element where the Light LC Server is present (for example for each bulb).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Device element to where model is used </td></tr>
    <tr><td class="paramname">p_callback</td><td>Application or Parent model callback that will be executed on receiving a message </td></tr>
    <tr><td class="paramname">is_provisioned</td><td>If TRUE, the application is being restarted after being provisioned or after a power loss. If FALSE the model cleans up NVRAM on startup.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_TRUE if initialization was successful </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Bluetooth LE Mesh Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
